package com.sihan.framework.etm.common.util;

/**
 * @Author: wx
 * @CreateTime: 2025/4/7
 * @className sgmap
 * @Description: TODO
 */
public class sgmap {
    public static boolean init(){
        epgis.coor.NativeLoader.load(true);
         return epgis.authentication.AuthenticationFactory.instance().epgis_init("http://map-js.sgcc.com.cn", "9310dd412b723519a87f77a48c5d1bc0","c376df61f28930a7ad635071a832d7da",true);
        //return epgis.authentication.AuthenticationFactory.instance().epgis_init("https://map.sgcc.com.cn", "bb4bd847029b338f96c40ed3194122f9","889023b830b83513a68415291cab46d9",true);
    }
    public static String getAccessToken()throws Exception{
        return epgis.authentication.AuthenticationFactory.instance().getAccessToken();
    }
    public static String  coorTrans(String coorOld) throws Exception{
      String desCoor=  epgis.coorcomponent.CoorFactory.instance().cgcs2000Tosg("http://map-js.sgcc.com.cn",getAccessToken(),coorOld);
        // String desCoor=  epgis.coorcomponent.CoorFactory.instance().cgcs2000Tosg("https://map.sgcc.com.cn",getAccessToken(),coorOld);
        return desCoor;
    }
}
